{% include file="index.header.tpl.php" %}
{% include file="index.left.tpl.php" %}
<!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
             <form action=" " method="">	
                <div class="box-header with-border">
                    <span class="fa fa-table" style="float:left; font-size:18px; padding-top:3px; color:#3c8dbc;" ></span>
                    <p class="box-title">因病缺课日报表</p>  
                </div>
                   <div class="box-body">
					   <div class="col-md-6 col-xs-12 form-group" style="padding:0;">
								  <label for="inputPassword3" class="col-sm-2 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500; ">
									   时间：
								  </label>
								  <div class="input-group col-md-4" style="float:left;">
									   <input type="text" class="form-control"  id="from" name="from" >
										 <div class="input-group-addon" style="padding:6px 7px;">
											<i class="fa fa-calendar"></i>
										 </div>
								  </div>
								  <span style="float:left;">  ~  </span >
								  <div class="input-group col-md-4" style="float:left;">
									   <input type="text" class="form-control" value="" id="to" name="to" >
										  <div class="input-group-addon" style="padding:6px 7px;">
											 <i class="fa fa-calendar"></i>
										 </div>
								  </div>						  
							</div>
					   <button type="submit" class="btn btn-warning">查 询</button>
                      <table class="table table-bordered"  id="mytable">
                                    <tr>
                                        <td>年级</td>
                                        <td>日期</td>
										<td width="90">操作</td>
                                    </tr>
									{%foreach from=$lack_lists key=key item=value%}
                                    <tr>
                                        <td>{%$value.class_name%}</td>
                                        <td>{%$value.create_time%}</td>
										<td>
                                            <a href="index.php?a=disease.daydetails&lack_id={%$value.lack_id%}" class="btn btn-success btn-xs">查 看</a>
                                        </td>
                                    </tr>
                                    {%/foreach%}                                  
                        </table>
				   </div><!--box-body -->
 
               </form>
			   <div class="box-footer" style="border-top:0px;">
					{%$page%}
			   </div>
           </div><!--box box-default box-solid-->
        </section>   
           
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
{% include file="index.footer.tpl.php" %}
<script>
  $(function() {
    $( "#from" ).datepicker({
      defaultDate: "+1w",
      changeMonth: true,
	  changeYear: true,
      numberOfMonths:1,
      onClose: function( selectedDate ) {
        $( "#to" ).datepicker( "option", "minDate", selectedDate );
      }
    });
    $( "#to" ).datepicker({
      defaultDate: "+1w",
      changeMonth: true,
      changeYear: true,
      numberOfMonths:1,
      onClose: function( selectedDate ) {
        $( "#from" ).datepicker( "option", "maxDate", selectedDate );
      }
    });
  });
  </script>